<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Gestion Citas</title>
        <?php 
            echo $this->Html->css("style.css");
            echo $this->Html->script('jquery-1.4.1.min.js');
            echo $this->Html->script('jquery.jcarousel.pack.js');
            echo $this->Html->script('jquery-func.js');
        ?>
    </head>
    <body>
        <div id="page" class="shell">
            <!-- Logo + Search + Navigation -->
            <div id="top">
                <div class="cl">&nbsp;</div>
                <h1 id="logo"><a href="#">MONDAYS</a></h1>
                
                <!--aqui carga de login -->
                <?php 
                    if($autenticado){
                        echo $this->Form->create("User", array("action" => "logout", "class" => "inicio"));    
                        echo $this->Form->end("Cerrar Sesion", array('class'=>"button" ));   
                     }
                    else{
                        echo $this->Form->create("User", array("action" => "login", "class" => "inicio"));
                        echo $this->Form->input('username');
                        echo $this->Form->input('password');
                        echo $this->Form->input('remember_me', array('type' => 'checkbox', 'label' => "Recordarme"));
                        echo $this->Form->end("Iniciar Sesion", array('class'=>"button" ));                     
                    }
                ?>
                
                <div class="cl">&nbsp;</div>
                <div id="navigation">
                    <ul>
                        <li>
                            <?php //echo ($this->Html->link('INICIO', "", array('class'=>'active')));?>
                            <a href="" class="active"><span>INICIO</span></a>
                            <!--			    	<ul>
                                                                    <li><a href="#">Servicios</a></li>
                                                                    <li><a href="#">Soporte</a></li>
                                                                    <li><a href="#">Contactenos</a></li>
                                                            </ul>-->
                        </li>
                        <!--			    <li>
                                                        <a href="#"><span>SERVICIOS</span></a>
                                                        <ul>
                                                                        <li><a href="#">Inicio</a></li>
                                                                <li><a href="#">Soporte</a></li>
                                                                <li><a href="#">Contactenos</a></li>
                                                        </ul>
                                                    </li>
                                                    <li>
                                                        <a href="#"><span>SOPORTE</span></a>
                                                        <ul>
                                                                <li><a href="#">Servicios</a></li>
                                                                <li><a href="#">Soporte</a></li>
                                                                <li><a href="#">Contactenos</a></li>
                                                        </ul>
                                                    </li>-->
                        <!--			    <li>
                                                        <a href="#"><span>CONTACTENOS</span></a>
                                                        <ul>
                                                                <li><a href="#">Servicios</a></li>
                                                                <li><a href="#">Soporte</a></li>
                                                                <li><a href="#">Contactenos</a></li>
                                                        </ul>
                                                    </li>-->
                    </ul>
                </div>	
            </div>
            <!-- END Logo + Search + Navigation -->
            <div id="contenido_principal">
                <?php echo $content_for_layout ?>
            </div>

            <!-- Footer -->
            <div id="footer">
                <p class="right">&copy; 2012 - PowerSoft &nbsp; Diseñado por  <a href="#" target="_blank" title="The Sweetest CSS Templates WorldWide">PowerSoft.com</a></p>
                <div class="cl">&nbsp;</div>
            </div>
            <!-- END Footer -->
            <br />
        </div>
    </body>
</html>